package com.example.hf_v1.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * 充值表

 * </p>
 *
 * @author 浪花骑士
 * @since 2024-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("recharge")
public class Recharge implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，唯一自增
     */
    @TableId(value = "recharge_id", type = IdType.AUTO)
    private Integer rechargeId;

    /**
     * 外键，关联user表中的user_id
     */
    private Integer rechargeUserId;

    /**
     * 已充值的金额
     */
    private Double rechargeSaveMoney;

    /**
     * vip到期日
     */
    private LocalDate rechargeOverTime;

    /**
     * 充值详细时间yyyy_mm_dd(h/m/s)
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime rechargeTinyTime;


}
